{{template "header"}} {{template "top" .}}

<form action="/topic/doadd" method="get" class="form-horizontal"
	role="form" style="display: block; width: 50%; margin: 20px auto;">
	<div class="form-group">
		<label for="firstname" class="col-sm-2 control-label">标题</label>
		<div class="col-sm-10">
			<input type="text" name="title" class="form-control" id="firstname"
				placeholder="请输入用户名">
		</div>
	</div>

	<div class="form-group">
		<label for="lastname" class="col-sm-2 control-label">文章内容</label>
		<div class="col-sm-10">
			<textarea name="content" class="form-control" rows="3"></textarea>
		</div>

	</div>

	<div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">提交</button>
		</div>
	</div>
</form>

<!--
  登录界面
<form method="post" action="/login">
<input type="text" name="username" value="luxiaofei"/><input type="password" name="password" value="123456"/>
<input type="submit" value="提交"/>
</form>-->
{{template "foot"}}
